package com.warm.base.design.c_builder;

/**
 * @Date: 2019/11/21 15:54
 * @Author: LChuang
 * @Description:
 */
public class ConcreteBuilder extends Builder {
    private Product product;
    public ConcreteBuilder(){
        product = new Product();
    }

    @Override
    void buildA() {
        product.setBuildA("A");
        System.out.println("build A");
    }

    @Override
    void buildB() {
        product.setBuildB("B");
        System.out.println("build B");
    }

    @Override
    Product getProduct() {
        return product;
    }
}
